<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

namespace builder\tree_table\util;

use builder\tree_table\HelperInterface;
use builder\tree_table\util\ttthead\Checkbox;
use builder\tree_table\util\ttthead\Field;
use builder\tree_table\util\ttthead\Toolbar;

/**
 * 树表格表头助手
 * @author cleverstone
 * @since ym2.0
 */
class TTTableHeadHelper implements HelperInterface
{
    /**
     * 普通列字段选项
     * @param string $field
     * @return Field
     */
    public function field($field = '')
    {
        return new Field($field);
    }

    /**
     * checkbox列选项
     * @return Checkbox
     */
    public function checkbox()
    {
        return new Checkbox();
    }

    /**
     * toolbar列选项
     * @return Toolbar
     */
    public function toolbar()
    {
        return new Toolbar();
    }
}